package com.xdxc.model.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xdxc.utils.JsonTypeHandler;
import com.xdxc.utils.LongListToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CorrectAnswerVo {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long questionId;

    @TableField(typeHandler = JsonTypeHandler.class)
    @JsonSerialize(using = LongListToStringSerializer.class)
    private List<Long> optionIds;  // Assuming JSON stores an array of numbers

    private String shortAnswer;

    @TableField(typeHandler = JsonTypeHandler.class)
    private List<String> fillKeywords; // Assuming JSON stores an array of strings

    private Integer answerVersion = 1;

    private Double score;

    // 无参构造函数

}
